package com.atmc.service;

import com.atmc.bean.Bill;
import com.atmc.bean.Email;
import com.atmc.mapper.EmailMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class EmailServiceImpl implements EmailService {
    @Autowired
    EmailMapper emailMapper;
    @Override
    public List<Email> selectAll() {
        return emailMapper.selectAll();
    }

    @Override
    public int insertOne(Email email) {
        return emailMapper.insertOne(email);
    }

    @Override
    public int insertAn(Email email) {
        return emailMapper.insertAn(email);
    }

    @Override
    public int updateOne(Email email) {
        return emailMapper.updateOne(email);
    }

    @Override
    public int deleteOne(int email_id) {
        return emailMapper.deleteOne(email_id);
    }

    @Override
    public Email selectOne(String email_add) {
        return emailMapper.selectOne(email_add);
    }
}
